package org.zoomdev.zoom.validator.annotations;

import org.zoomdev.zoom.common.utils.DateTimeUtils;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 日期规则
 *
 * @see DateTimeUtils
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({java.lang.annotation.ElementType.FIELD, java.lang.annotation.ElementType.PARAMETER})
public @interface DateFormat {
    String value() default DateTimeUtils.DATE_PATTERN;

    String message() default "日期不符合格式";
}
